package com.sdyeda.readiot.scheduled;

import java.util.Date;


/**
 * @author defly
 *  任务信息类
 */
public class ScheduledInfo {

	private String name;
	private ScheduledInfo.ScheduledStatus status;
	private Date begin;
	private ScheduledFutureHolder futureholder;
	
	/**
	 * @author defly
	 * 任务运行状态枚举
	 */
	public enum ScheduledStatus {
		running,  
		stoped,
		unkown

	}
	
	public void setInfo(String name,ScheduledFutureHolder futureholder,Date begin,ScheduledStatus status) {
		setName(name);
		setFutureholder(futureholder);
		setBegin(begin);
		setStatus(status);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ScheduledStatus getStatus() {
		return status;
	}

	public void setStatus(ScheduledStatus status) {
		this.status = status;
	}

	public Date getBegin() {
		return begin;
	}

	public void setBegin(Date begin) {
		this.begin = begin;
	}

	public ScheduledFutureHolder getFutureholder() {
		return futureholder;
	}

	public void setFutureholder(ScheduledFutureHolder futureholder) {
		this.futureholder = futureholder;
	}

}
